<?php

class Application_Form_ChangeEmail extends Zend_Form {

    public function init() {


        $email = new Zend_Form_Element_Text('email', array(
                    'label' => 'Email'
                ));
        $email->setRequired(true);

        $this->addDisplayGroup(array(
            $email
                ), 'gr-main');
        $submit = new Zend_Form_Element_Submit('submitEmail', array(
                    'label' => 'Zapisz',
                    'class' => 'ui-form-button',
                ));

        $this->addDisplayGroup(array(
            $submit
                ), 'gr-submit', array(
            'order' => 999
        ));
    }

}